package com.mayikt.service;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@EnableAutoConfiguration
//@ComponentScan("com.mayikt.service") // 扫包
public class HelloworldService {

    @RequestMapping("/getUser")
    public String getUser(){
        return "mayikt";
    }

//    public static void main(String[] args) {
//        SpringApplication.run(HelloworldService.class);
//    }
}
